dnd: pass hotspot to GDK
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 02:54:55 +0000 (21:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 02:54:55 +0000 (21:54 -0500)
This uses the new api introduced in the previous commits.

gtk/gtkdnd.c

index 20ec74e04feb42f3346aad88414d12de968b3d40..eba82c9e64688d7058262c002b7d4ef9c7027ad0 100644 (file)
@@ -2468,6 +2468,8 @@ gtk_drag_set_icon_window (GdkDragContext *context,
   if (!widget)
     goto out;
 
+  gdk_drag_context_set_hotspot (context, hot_x, hot_y);
+
   if (!info->icon_window)
     {
       GdkScreen *screen;